import request from '@/utils/request/index.js'
export default {

	/**
	 * 获取历史搜索关键字
	 * @param data
	 * @returns {*}
	 */
	getSearchKey(data){
		return request.request({
			url:"/h5/searchkey/searchkeyList",
			data: data
		})
	},

	/**
	 * 获取产品分类
	 * @param data
	 * @returns {*}
	 */
	getSearchProductClassify(data){
		return request.request({
			url:"/h5/searchproductclassify/searchProClaList",
			data: data
		})
	},

	/**
	 * 删除历史记录
	 * @param data
	 * @returns {*}
	 */
	delSearchHistory(data){
		return request.request({
			url:"/h5/searchkey/delSearchHistory",
			data: data
		})
	},

	/**
	 * 保存搜索关键字
	 * @param data
	 * @returns {*}
	 */
	saveSearchKey(data){
		return request.request({
			url:"/h5/searchkey/save",
			data: data
		})
	}


}
